
cmake_minimum_required (VERSION 2.8)
#PROJECT(libshare)

SET(CMAKE_C_COMPILER g++)

INCLUDE(${PROJECT_SOURCE_DIR}/../cmake_v.cmake)

AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR} SHARE_SRC)
AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR}/sql SHARE_SRC)
SET(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")

message("source code path:" ${SHARE_SRC})
message("----------------------------------------")
message("output directory:" ${LIBRARY_OUTPUT_PATH})

ADD_LIBRARY(share STATIC ${SHARE_SRC})
install(TARGETS share DESTINATION ${LIBRARY_OUTPUT_PATH})  
#SET_TARGET_PROPERTIES(libshare PROPERTIES OUTPUT_NAME "share")
